Class_name = "CTurret"
object_name = "TurretFelixF2A_3"

[COCKPIT_LIMITS]
x= -0.2, 0.2
y= -0.06, 0.18
z= -0.56, 0.56
[END]

VisualImage=0,"graphics/planes/FelixF2A/FelixF2A_C3_Low.mgm",1
VisualImage=1,"graphics/planes/FelixF2A/FelixF2A_C3.mgm",0

CollisionBody="graphics/planes/FelixF2A/FelixF2A_C3.col"

VisualRadius=2.0
CameraRestrict=0.5
mp_site=true

[attach=0]
	position = 0.0, 0.2, 0.0
	object = "LuaScripts/WorldObjects/BotGunnerFelix_b-u-single.txt"
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.bin"

SoundScript="LuaScripts/FelixF2A_T3.cfg"

gauges_low_cmd=0,0
gauges_low_cmd=1,1
gauges_low_cmd=2,2
gauges_low_cmd=3,3
gauges_low_cmd=4,4
gauges_low_cmd=5,5
gauges_low_cmd=6,6
gauges_med_cmd=0,7
gauges_med_cmd=1,8
gauges_med_cmd=2,9
gauges_med_cmd=3,10

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)

[TurretsPos=1]
	position = 0.0, 0.75, 0.0
	PosMoveArg = 21300

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -180.0
		SectorAngleMax = 180.0

		AngularSpeed   = 60.0

		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 21001

		Point = -0.152823, 0.053047, 0.0
		Axis = 0.0, 1.0, 0.0

		IsCycled = true
		
		IsFullAngle = true

		SoundNumber = 1
	[end]

	[Joint=1]
		SectorAngleMin = -43.0
		SectorAngleMax = 0.0
		
		AngularSpeed   = 30.0

		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 21002

		Point = 0.6355,0.077867,0.0
		Axis = 0.0, 0.0, 1.0

		IsFullAngle = true

		NextLinkedId = 2

		SoundNumber = 1
	[end]

	[Joint=2]
		SectorAngleMin = -45
		SectorAngleMax = 45
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.375
		AnimationArgMax = 0.625

		AnimationArgNum = 21007
		
		Point = 0.0, 0.0, 0.0
		Axis  = 0.0, 0.0, 1.0
		
		IsFullAngle = true
		
		DependFromPrevious = true
		
		PrevLinkedId = 1

		SoundNumber = 2
	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = 0.06, -0.45, 0.0
	relativeBotSit = 0.06, -0.45, 0.0
	relativeBotDead = 0.06, -0.45, 0.0
	TransitionStandPower = 1.0
	TransitionDeadPower = 3.0


	BotAttachJointId = 0
	BotFirstAnimJointId = 2 
	BotSecondAnimJointId = 1

	SightPosition = 0.0, 0.5, 0.0

	defaultDirection = 0.2, 0.1, 0.0

	CamDisplacement = -0.30, 0.23137, 0.0
[end]

[TurretsGun=5]

	Displacement = 0.42612, 0.073537, 0.0

	GunType = "LuaScripts/WorldObjects/Weapons/Lewis.txt"

	ReLoadingStagesTime = 1.0, 3.0, 1.0, 0.3
 
	MaxRoundsInMagazine = 97
	RoundsInMagazine = 97
	MaxReservedMagazines = 6
	ReservedMagazines = 6
	MaxMisFiresInMagazine = 1
	AmountRoundsWithOneTracer = 3

	GunSoundsIdx = 1
	ShotSoundType = 0

	ReservedMagazinesArgIdx = 9181
	FlashAnimationArgIdx = 9040
	TriggerPositionArgIdx = 9000
	RoundsInMagazineArgIdx = 9046
	HideAmmunitionArgIdx = 9045
	ReLoadingArgIdx = 9044
	AzimuthDeviationArgIdx = 9012
	ElevationDeviationArgIdx = 9013
	FiringPinPositionArgIdx = 9016

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

//	SafetyLockPositionArgIdx = -1
//	AfterServiceOperationDelay

	Deviation = 5.2, 1.95, 0.9, 0.02, 0.1, 0.2
	ParallaxDistance = 180.0
	
	NumOfAnimations = 4

	BushCoord = -0.337, 0.075, 0.02
	BushSpeed = 0.0, 0.0, 1.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"
	
	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_MK7.txt"
	[end]

	[bullet=1]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GBR_77x56R_WMK1_AP.txt"
	[end]

	SoundNumber = 1

[end]

SightPos = 0.0, 0.2, 0.0
PositionChangeTime = 1.0
ReloadDelay = 0.3
ShootOutSoundID = 0

BotRotaionValueZ = 0.0
LegsParameter = 0.0

BotMaxSecondAngle = 0.0
BotMinSecondAngle = -43.0

BotMaxFirstAngle  = 45.0
BotMinFirstAngle  = -45.0 

FirstToSecondInterp = 0.0

TotalSectorLimits = 10

//   ,         
SectorLimits0 = -180.0, -172.0, +55.0, +90.0
SectorLimits1 = -172.0, -154.0, +0.0, +90.0
SectorLimits3 = -154.0, -140.0, +15.0, +90.0
SectorLimits4 = -140.0, -114.0, +32.0, +90.0

SectorLimits5 = -50.0, +50.0, -17.0, +90.0

SectorLimits6 = +114.0, +140.0, +32.0, +90.0
SectorLimits7 = +140.0, +154.0, +15	.0, +90.0
SectorLimits8 = +154.0, +172.0, +0.0, +90.0
SectorLimits9 = +172.0, +180.0, +55.0, +90.0

// Damage

Armor=0 	
LifeRate=500 	
LifeRateFg=5000 
Firing=0.0 
